﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010D1 RID: 4305
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneGroupState : IMessage<SceneGroupState>, IMessage, IEquatable<SceneGroupState>, IDeepCloneable<SceneGroupState>, IBufferMessage
	{
		// Token: 0x1700366A RID: 13930
		// (get) Token: 0x0600C068 RID: 49256 RVA: 0x00207D00 File Offset: 0x00205F00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneGroupState> Parser
		{
			get
			{
				return SceneGroupState._parser;
			}
		}

		// Token: 0x1700366B RID: 13931
		// (get) Token: 0x0600C069 RID: 49257 RVA: 0x00207D07 File Offset: 0x00205F07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneGroupStateReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700366C RID: 13932
		// (get) Token: 0x0600C06A RID: 49258 RVA: 0x00207D19 File Offset: 0x00205F19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneGroupState.Descriptor;
			}
		}

		// Token: 0x0600C06B RID: 49259 RVA: 0x00207D20 File Offset: 0x00205F20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneGroupState()
		{
		}

		// Token: 0x0600C06C RID: 49260 RVA: 0x00207D28 File Offset: 0x00205F28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneGroupState(SceneGroupState other) : this()
		{
			this.groupId_ = other.groupId_;
			this.isDefault_ = other.isDefault_;
			this.state_ = other.state_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C06D RID: 49261 RVA: 0x00207D65 File Offset: 0x00205F65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneGroupState Clone()
		{
			return new SceneGroupState(this);
		}

		// Token: 0x1700366D RID: 13933
		// (get) Token: 0x0600C06E RID: 49262 RVA: 0x00207D6D File Offset: 0x00205F6D
		// (set) Token: 0x0600C06F RID: 49263 RVA: 0x00207D75 File Offset: 0x00205F75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x1700366E RID: 13934
		// (get) Token: 0x0600C070 RID: 49264 RVA: 0x00207D7E File Offset: 0x00205F7E
		// (set) Token: 0x0600C071 RID: 49265 RVA: 0x00207D86 File Offset: 0x00205F86
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsDefault
		{
			get
			{
				return this.isDefault_;
			}
			set
			{
				this.isDefault_ = value;
			}
		}

		// Token: 0x1700366F RID: 13935
		// (get) Token: 0x0600C072 RID: 49266 RVA: 0x00207D8F File Offset: 0x00205F8F
		// (set) Token: 0x0600C073 RID: 49267 RVA: 0x00207D97 File Offset: 0x00205F97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint State
		{
			get
			{
				return this.state_;
			}
			set
			{
				this.state_ = value;
			}
		}

		// Token: 0x0600C074 RID: 49268 RVA: 0x00207DA0 File Offset: 0x00205FA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneGroupState);
		}

		// Token: 0x0600C075 RID: 49269 RVA: 0x00207DB0 File Offset: 0x00205FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneGroupState other)
		{
			return other != null && (other == this || (this.GroupId == other.GroupId && this.IsDefault == other.IsDefault && this.State == other.State && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C076 RID: 49270 RVA: 0x00207E0C File Offset: 0x0020600C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.IsDefault)
			{
				num ^= this.IsDefault.GetHashCode();
			}
			if (this.State != 0U)
			{
				num ^= this.State.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C077 RID: 49271 RVA: 0x00207E7D File Offset: 0x0020607D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C078 RID: 49272 RVA: 0x00207E85 File Offset: 0x00206085
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C079 RID: 49273 RVA: 0x00207E90 File Offset: 0x00206090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.State != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.State);
			}
			if (this.IsDefault)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.IsDefault);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C07A RID: 49274 RVA: 0x00207F08 File Offset: 0x00206108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.IsDefault)
			{
				num += 2;
			}
			if (this.State != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.State);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C07B RID: 49275 RVA: 0x00207F6C File Offset: 0x0020616C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneGroupState other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.IsDefault)
			{
				this.IsDefault = other.IsDefault;
			}
			if (other.State != 0U)
			{
				this.State = other.State;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C07C RID: 49276 RVA: 0x00207FD0 File Offset: 0x002061D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C07D RID: 49277 RVA: 0x00207FDC File Offset: 0x002061DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 64U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.GroupId = input.ReadUInt32();
						}
					}
					else
					{
						this.IsDefault = input.ReadBool();
					}
				}
				else
				{
					this.State = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004D87 RID: 19847
		private static readonly MessageParser<SceneGroupState> _parser = new MessageParser<SceneGroupState>(() => new SceneGroupState());

		// Token: 0x04004D88 RID: 19848
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D89 RID: 19849
		public const int GroupIdFieldNumber = 14;

		// Token: 0x04004D8A RID: 19850
		private uint groupId_;

		// Token: 0x04004D8B RID: 19851
		public const int IsDefaultFieldNumber = 8;

		// Token: 0x04004D8C RID: 19852
		private bool isDefault_;

		// Token: 0x04004D8D RID: 19853
		public const int StateFieldNumber = 7;

		// Token: 0x04004D8E RID: 19854
		private uint state_;
	}
}
